<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <jsp:include page="../incHead.jsp">
        <jsp:param name="title" value="editForest.title" />
    </jsp:include>
    <body>        
        <jsp:include page="../incHeader.jsp"/>
        <div id="container">
            <jsp:include page="../incMenu.jsp"/>
            <div id="content">
                <div class="divOfForms">
                    <div id="title_subsection">
                        <h3><fmt:message key="editForest.title"/></h3>
                    </div>
                    <form:form action="editedForest" method="GET">
                        <form:hidden readonly="true" path="id" />
                        <form:errors class="error" path="id" cssClass="error"/>
                        <table class="tableOfForms">
                            <tr>
                                <td class="outputInTable"><form:label path="name"><fmt:message key="forest.name"/></form:label></td>
                                <td><form:input path="name" /></td>
                                <td><form:errors class="error" path="name" cssClass="error"/></td>
                            </tr>
                            <tr>
                                <td class="outputInTable"><form:label path="locationInfo"><fmt:message key="forest.locInfo"/></form:label></td>
                                <td><form:input path="locationInfo" /></td>
                                <td><form:errors class="error" path="locationInfo" cssClass="error" /></td>
                            </tr>
                            <tr>
                                <td></td>
                                <td><input type="submit" value=<fmt:message key="general.submit"/> /></td>
                                <td></td>
                            </tr>
                        </table>
                    </form:form>
                    <p class="error">${error}</p>
                </div>
            </div>
        </div>
    </body>
</html>
